package com.nd.bdc.presto.entity;

import java.sql.ResultSetMetaData;
import java.util.List;

public class PrestoSelectResult {
    private String sql;

    private ResultSetMetaData metaData;

    private int startRow;

    private int fetchSize;

    private List<Row> rows;

    public PrestoSelectResult(String sql, ResultSetMetaData metaData, int startRow, int fetchSize, List<Row> rows) {
        this.sql = sql;
        this.metaData = metaData;
        this.startRow = startRow;
        this.fetchSize = fetchSize;
        this.rows = rows;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public ResultSetMetaData getMetaData() {
        return metaData;
    }

    public void setMetaData(ResultSetMetaData metaData) {
        this.metaData = metaData;
    }

    public int getStartRow() {
        return startRow;
    }

    public void setStartRow(int startRow) {
        this.startRow = startRow;
    }

    public int getFetchSize() {
        return fetchSize;
    }

    public void setFetchSize(int fetchSize) {
        this.fetchSize = fetchSize;
    }

    public List<Row> getRows() {
        return rows;
    }

    public void setRows(List<Row> rows) {
        this.rows = rows;
    }
}
